import prance

def parse_openapi_spec(file_path):
    parser = prance.ResolvingParser(file_path, recursion_limit=10)
    spec = parser.specification
    return spec

if __name__ == "__main__":
    spec = parse_openapi_spec('test.yaml')
    print(spec)


